package com.yugao.fintech.antelope.gateway.remote;

import com.yugao.fintech.antelope.base.model.constants.SecurityCons;
import com.yugao.fintech.antelope.base.model.constants.ServiceCodeCons;
import com.yugao.fintech.framework.core.response.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(contextId = "authRemote", value = ServiceCodeCons.AUTH_SERVICE, url = "${server-url}")
public interface AuthRemote {
    @GetMapping(value = "/oauth2/client/listPermission", headers = SecurityCons.HEADER_FROM_IN)
    Resp<Map<String, List<String>>> listClientPermission(@RequestParam("clientId") String client);
}
